var a = [],
    c = [],
    e = ['<select name="movieId" onchange="goMov();" id="movieId" class="DropDown"><option value="">Select Movie</option>'];
for (i = 62; i < document.getElementsByTagName("td").length; i += 12) {
    a.push(document.getElementsByTagName("td")[i].innerHTML), c.push(document.getElementsByTagName("td")[i + 1].innerHTML)
}
function f(d) {
    for (var g = {}, b = d.length - 1; 0 <= b; b--) {
        d[b] in g ? d.splice(b, 1) : g[d[b]] = !0
    }
}
f(a);
f(c);
for (i = 0; i < c.length; i++) {
    e.push('\n<option value="' + c[i] + '">' + a[i] + "</option>")
}
e.push("</select>");
e = e.toString();
e = e.replace(/,/g, "");
document.getElementsByTagName("td")[52].innerHTML = e;

function goMov() {
    document.getElementById("SubmitButton").click();
}